package com.asianrapid.dao;


import com.asianrapid.model.sys.CarsAndCtypeEntity;
import com.asianrapid.model.sys.CarsEntity;
import com.asianrapid.model.sys.CtypeEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface CarsDao {
    public ArrayList<CarsAndCtypeEntity> carsList(@Param("pageSize") int pageSize, @Param("start") int start, @Param("state") int state);
    public Integer carsSize(@Param("pageSize") int pageSize,@Param("start") int start,@Param("state") int state);
    List<CtypeEntity> getCarType();
    CarsEntity getCars(@Param("groupId") Integer groupId);

    void insertCars(@Param("carsEntity") CarsEntity carsEntity);
    void updateCars(@Param("carsEntity") CarsEntity carsEntity);
    void updateDeleteCars(@Param("groupId") List<String> groupId);
}
